package top.codedance.iotp.tools.serverTool;

import top.codedance.iotp.tools.serverTool.entity.ServerConf;
import top.codedance.iotp.tools.serverTool.ui.MainFrame;
import top.codedance.iotp.tools.terminal.ui.ShellFrame;

public class ServerToolApplication implements Runnable {
    public static final ServerConf serverConf = new ServerConf("http://127.0.0.1:10012", "admin", "123456");
    private ShellFrame sf;

    public ServerToolApplication(ShellFrame sf) {
        this.sf = sf;
    }

    @Override
    public void run() {
        java.awt.EventQueue.invokeLater(() -> {
            MainFrame mainFrame = new MainFrame(this.sf);
            mainFrame.setLocationRelativeTo(this.sf);
            mainFrame.setVisible(true);
        });
    }
}
